$(document).ready(function() {


    var ue = UE.getEditor('editor',{
        toolbars: [
            ['fullscreen', 'undo', 'redo'],
            ['bold','emotion', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc','simpleupload']
        ],
        autoHeightEnabled: false,
        autoFloatEnabled: false,
        elementPathEnabled:false,
        imagePathFormat: "/resources/js/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}"
    });

    $("#huifuBtn").click(function () {

        var text = ue.getPlainTxt();

        $("#content").val(text);

        $("#form").submit();


    });

});